package com.jt.provider.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class ResourceService {

//    @SentinelResource("doGetResource")
//    public String doGetResource(){
//        return "do get resource";
//    }

    @SentinelResource(value = "doGetRecource",
            blockHandler = "call",
            blockHandlerClass = ResourceBlockHandler.class)
    public String doGetRecource() {
        return "do get recource";
    }
}
